package modelo;


public class cajaAhorro extends Cuenta{
	private float interesMensual;
	
	public cajaAhorro(int dni,String nom,String ape,float inter){
		super(dni,nom,ape);
		this.interesMensual=inter;
	}

	public float getInteresMensual() {
		return interesMensual;
	}

	public void setInteresMensual(float interesMensual) {
		this.interesMensual = interesMensual;
	}

	@Override
	public boolean extraer(float monto) {
		if(monto<=this.getSaldo()){
			this.setSaldo(getSaldo()-monto);
			return true;
		}
		return false;
		// TODO Auto-generated method stub
		
	}
	
	
}
